#include <iostream>
using namespace std;
int main() {
  int arr[5];
  arr[0] = 10;
  arr[1] = 20;
  arr[2] = 30;
  arr[3] = 40;
  arr[4] = 50;
  cout << arr[0] << endl;
  cout << arr[1] << endl;
  cout << arr[2] << endl;
  cout << arr[3] << endl;
  cout << arr[4] << endl;

  int arr1[5] = {60, 70, 80, 90, 100};
  for (int i = 0; i < 5; i++) {
    cout << arr1[i] << endl;
  }

  int arr2[] = {110, 120, 130, 140, 150};
  for (int i = 0; i < 5; i++) {
    cout << arr2[i] << endl;
  }

  cout << "arr数组占用内存空间" << sizeof(arr) << endl;
  cout << "arr[0]占用内存空间" << sizeof(arr[0]) << endl;
  cout << "arr数组个数" << sizeof(arr) / sizeof(arr[0]) << endl;
  cout << "arr数组首地址" << arr << endl;
  cout << "arr[0]地址" << &arr[0] << endl;
  cout << "arr[1]地址" << &arr[1] << endl;
  return 0;
}
